package svgedit.japangui.actions;

import java.awt.event.ActionEvent;
import javax.swing.AbstractAction;

import svgedit.japangui.JapanFrame;


/** Shows confirm changes dialog, then exits the application.
 */
@SuppressWarnings("serial")
public class LanguageListener extends AbstractAction {

    private JapanFrame japanFrame;
	String language="Japanese";

    /** Create this action for the given frame */
    public LanguageListener(JapanFrame japanFrame) {
        this.japanFrame = japanFrame;
    }
	
	@Override
	public void actionPerformed(ActionEvent e) {
		language = e.getActionCommand();
		japanFrame.setLanguage();
	}

	public String getLanguage ()
	{
		return language;
	}
	
	public void resetLanguage()
	{
		language = "Japanese";
	}

}
